<%--
说明：资源信息表 明细页面

@author zhangxing 2012-11-14
--%>
<%@ include file="../../common/common.jsp"%>
<%
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB2312" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<title>资源信息明细</title>
<script type="text/javascript" charset="UTF-8">
var opeForm;
var grid;

$(function(){
	opeForm = $('#opeForm');
	
	grid=$('#listTable').datagrid({
		columns:[[

	            {title:'统一登录名',field:'LOGIN_NAME',align:'center',width:100},

	            {title:'用户姓名',field:'USR_NAME',align:'center',width:100},

	            {title:'所属机构',field:'ORG_NAME',align:'center',width:80},

	            {title:'用户类型',field:'USR_TYPE_DECODE',align:'center',width:80},

	            {title:'负责人',field:'IS_LEADER',align:'center',width:60, 
	            	formatter:function(value,rec){
	            		return value ==  '1' ? '<font color="green"> √ </font>' : '<font color="red"> × </font>';
	  			    }
	             },

	            {title:'操作员',field:'IS_OPERATOR',align:'center',width:60, 
	            	formatter:function(value,rec){
	            		return value ==  '1' ? '<font color="green"> √ </font>' : '<font color="red"> × </font>';
	 			    }
	            },

	            {title:'用户状态',field:'USR_STATUS_DECODE',align:'center',width:80}

        ]],
        fitColumns:true,
		pagination:true,
		singleSelect: true
	});
	
	queryOperation();
});

//翻页时自动调用此函数
function onLoadPrev(msg){
	var queryParams=grid.datagrid('options').queryParams;
	queryParams['firstQuery']=false;
}

//查询操作
function queryOperation(){
	var params = opeForm.serializeObject();
	grid.datagrid("options").pageNumber = 1;
	grid.datagrid({
		url: 'C_RSC!queryList_RSC_USR.do',
		queryParams: jQuery.extend({}, params, {'firstQuery': true})
	});
}
</script>
</head>

<body class="easyui-layout">
	<form id="opeForm" name="opeForm">
		<input type="hidden" name="model.rsc_id" value="${model.rsc_id }"/>
	</form>
	<div region="center" border="false">
		<table id="listTable"></table>
	</div>
</body>
</html>